<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link href="../lib/layui-v2.6.3/css/layui.css"/>	
	</head>

	<body>
	
	<div id="test">
		
	</div>
	
	<button type="button" class="layui-btn" id="test1">
	  <i class="layui-icon">&#xe67c;</i>上传图片
	</button>		
	
	<script src="../lib/layui-v2.6.3/layui.js"></script>
	<script>
	layui.use('upload', function(){
	  var upload = layui.upload;
	   
	  //执行实例
	  var uploadInst = upload.render({
	    elem: '#test1' //绑定元素
	    ,url: 'http://127.0.0.1:8848/layuimini-2/layuimini-2/page/imguploding.html' // 上传接口，实际使用时改成您自己的上传接口即可。
	    ,done: function(res){
	      //上传完毕回调
	    }
	    ,error: function(){
	      //请求异常回调
	    }
	  });
	});
	</script>
	</body>
</html>